home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 187_01 / usage.c < prev    next >
Text File  |  1985-12-29  |  710b  |  24 lines

  1. /*@*****************************************************/
  2. /*@                                                    */
  3. /*@ usage is a template for a standard syntax error    */
  4. /*@        report.  It was adapted from the DECUS      */
  5. /*@        GREP utility and I use it for all my        */
  6. /*@        main programs.  Change the first and the    */
  7. /*@        third line for the individual program.      */
  8. /*@                                                    */
  9. /*@*****************************************************/
  10.  
  11.  
  12. usage(s)
  13. char    *s;
  14. {
  15.    puts("?CHANGE-E-");
  16.    puts(s);
  17.    puts("\n");
  18.    puts("Usage: chg [-eo] pattern subst [file ...].  chg ? for help\n");
  19.    exit(1);
  20. }
  21.  
  22.  
  23.  
  24.